package cn.northsea.pojo;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;


@Component
@Data
public class Logistics {
    private int logisticsId;
    private String startPoint;
    private String endPoint;

    private Date departureTime;

    private Date arrivalTime;
    private int status;
    private String itemDescription;
    private String remarks;
    private int transportPersonnelId;
    private  int orderId;
    public Logistics() {
    }

    public Logistics(LogisticsVo logisticsVo) {
        this.logisticsId = logisticsVo.getLogisticsId();
        this.startPoint = logisticsVo.getStartPoint();
        this.endPoint =  logisticsVo.getEndPoint();
        this.departureTime = logisticsVo.getDepartureTime();
        this.arrivalTime =  logisticsVo.getArrivalTime();
        this.status =  logisticsVo.getStatus();
        this.itemDescription =  logisticsVo.getItemDescription();
        this.remarks =  logisticsVo.getRemarks();
        this.transportPersonnelId =  logisticsVo.getTransportPersonnelId();
        this.orderId=logisticsVo.getOrderId();
    }
}
